package com.xy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xy.entity.Product;
import com.xy.mapper.ProductMapper;
import com.xy.service.ProductService;

@Service(value = "productServicer")
public class ProductServiceImpl implements ProductService {
	@Autowired
	private ProductMapper productMapper;

	@Override
	public boolean addProduct(Product product) {
		return productMapper.addProduct(product);
	}

	@Override
	public boolean deleProduct(Product product) {
		return productMapper.deleProduct(product);
	}

	@Override
	public boolean updateProduct(Product product) {
		return productMapper.updateProduct(product);
	}

	@Override
	public List<Product> selectProduct(Product product) {
		return productMapper.selectProduct(product);
	}

}
